determination of working length